export interface CascaderOption {
  [key: string]: any;
  key?: any;
  value: any;
  label: string;
  title?: string;
  disabled?: boolean;
  loading?: boolean;
  isLeaf?: boolean;
  parent?: CascaderOption;
  children?: CascaderOption[];
  active?: boolean; // 内部使用，标识是否被展开，展开高亮
  selected?: boolean; // 内部使用，标识节点是否选中
  indeterminate?: boolean; // 半选状态
}

export interface CascaderSearchOption extends CascaderOption {
  path: CascaderOption[];
}

export type CascaderFilter = (searchValue: string, path: CascaderOption[]) => boolean;
